package cn.org.mrliu.code.generator.web.element;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class Option {
	private String value;
	private String text;
	private boolean selected;
	public Option() {
		super();
	}
	public Option(String value, String text) {
		super();
		this.value = value;
		this.text = text;
	}
	public Option(String value, String text, boolean selected) {
		super();
		this.value = value;
		this.text = text;
		setSelected(selected);
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public boolean isSelected() {
		return selected;
	}
	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
}
